package com.spzx.product.api.domain;

import com.spzx.common.core.web.domain.BaseEntity;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 分类品牌
 * </p>
 *
 * @author dongdongxiaoyuanmao
 * @since 2025-03-06
 */
@Getter
@Setter
@Schema(description = "品牌")
public class Brand extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 品牌名称
     */
    @NotBlank(message = "品牌名称不能为空")
    @Schema(description = "品牌名称")
    @Size(min = 0, max = 10, message = "品牌名称长度不能超过10个字符")
    private String name;

    /**
     * 品牌图标
     */
    @NotBlank(message = "品牌图标不能为空")
    @Schema(description = "品牌图标")
    private String logo;
}
